<include file="public@header" />
<style>
	/*table{ border:1px solid #000; width:80%; font-size:1rem; margin-bottom:20px}
	td{border:1px solid #000; padding:0 5px; height:2rem; text-align:center}*/
	tr td input,tr td select{ max-width:80px;width:auto;}
	.content_nav .check_info{flex:1; display:flex;flex-direction: column;align-items: center;justify-content: center;}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">        
    <form class="form-horizontal js-ajax-form" action="{:url('')}" method="post" enctype="multipart/form-data">
        <fieldset>
        <div style=" width:515px; margin:0 0 20px 0px; padding:10px 0 10px 10px; border-bottom:1px SOLID #0b7ebf"> 客户信息 </div>
		<div class="control-group1-p div_content" style="border: none;padding-top:0">
                <div class="control-group1" style="width:100%;">
                    <label class="control-label" style="width:70px;">购买人姓名</label>
                    <div class="controls" style=" margin-left:80px;">
                        <input type="text" class="form-control" style="max-width:200px; width:auto;" value="{$dj_info.buyer_name}" disabled>
                    </div>
                </div>
                <div class="control-group1" style="width:50%;">
                    <label class="control-label" style="width:70px;">身份证号</label>
                    <div class="controls" style=" margin-left:80px;">
                        <input type="text" class="form-control"  style="max-width:200px; width:auto;" value="{$dj_info.cart_num}" disabled>
                    </div>
                </div>
                <div class="control-group1" style="width:50%;">
                    <label class="control-label" style="width:70px;">联系电话</label>
                    <div class="controls" style=" margin-left:80px;">
                        <input type="text" class="form-control"   style="max-width:200px; width:auto;" value="{$dj_info.buyer_phone}" disabled>
                    </div>
                </div>
                <div class="control-group1" style="width:50%;">
                    <label class="control-label" style="width:70px;">墓位编号</label>
                    <div class="controls" style=" margin-left:80px;">
                        <input type="text" class="form-control" disabled style="max-width:200px; width:auto;" value="{$dj_info.mw_num}">
                    </div>
                </div>
                <div class="control-group1" style="width:50%;">
                    <label class="control-label" style="width:70px;">具体位置</label>
                    <div class="controls" style=" margin-left:80px;">
                        <input type="text" class="form-control" style="max-width:200px; width:auto;" value="{$dj_info.mw_num}" disabled>
                    </div>
                </div>
                <div class="control-group1" style="width:50%;">
                    <label class="control-label" style="width:70px;">下单时间</label>
                    <div class="controls" style=" margin-left:80px;">
                        <input type="text" class="form-control"   style="max-width:200px; width:auto;" value="{$dj_info.order_add_time}" disabled>
                    </div>
                </div>
                <div class="control-group1" style="width:50%;">
                    <label class="control-label" style="width:70px;">导购员</label>
                    <div class="controls" style=" margin-left:80px;">
                        <input type="text" class="form-control" style="max-width:200px; width:auto;" value="{$dj_info.shoppingguide_name}" disabled>
                    </div>
                </div>

                 <div class="control-group1" style="width:50%;">
                    <label class="control-label" style="width:70px;">收款日期</label>
                    <div class="controls" style=" margin-left:80px;">
                        <input type="text" class="form-control" disabled style="max-width:200px; width:auto;"  value="{:unixtime_to_date($dj_info.pay_time)}">
                    </div>
                </div>
                <div class="control-group1" style="width:50%;">
                    <label class="control-label" style="width:70px;">失效日期</label>
                    <div class="controls" style=" margin-left:80px;">
                        <input type="text" class="form-control"  disabled style="max-width:200px; width:auto;" value="{:unixtime_to_date($dj_info.end_time)}">
                    </div>
                </div>
                <div class="control-group1" style="width:50%;">
                    <label class="control-label" style="width:70px;">收款金额</label>
                    <div class="controls" style=" margin-left:80px;">
                        <input type="text" class="form-control"  disabled style="max-width:200px; width:auto;" value="{$dj_info.deposit_price}">
                    </div>
                </div>
                <div class="control-group1" style="width:50%;">
                    <label class="control-label" style="width:70px;">收款方式</label>
                    <div class="controls" style=" margin-left:80px;">
                        <input type="text" class="form-control" disabled style="max-width:200px; width:auto;" value="{:cart_type('pay',$dj_info.deposit_type)}">
                    </div>
                </div>
                <div class="control-group1" style="width:50%;">
                    <label class="control-label" style="width:70px;">收款人</label>
                    <div class="controls" style=" margin-left:80px;">
                        <input type="text" class="form-control" disabled style="max-width:200px; width:auto;" value="{$dj_info.shoppingguide_name}">
                    </div>
                </div>
                <div style="clear:both; width:515px; margin:0 0 20px 0px; padding:10px 0 10px 10px; border-bottom:1px SOLID #0b7ebf"> 申请退定 </div>
                <div class="control-group1-p div_content" style="border: none;padding-top:0">
                    <div class="control-group1" style="width:50%">
                        <label class="control-label" style="width:70px;"><font color="red" size="+1">*</font>收款凭证</label>
                        <div class="controls" style=" margin-left:80px;">
                            <input type="hidden" name="pay_voucher_img" id="pay_voucher_img" value=" ">
                            <a href="javascript:uploadOneImage('上传凭证', '#pay_voucher_img');">
                                <h5 class="btn btn-primary">上传凭证</h5>
                            </a>
                            <img  src=" " style="width: 36px"   onclick="parent.imagePreviewDialog(this.src);"  class="preview" id="pay_voucher_img-preview" />
                        </div>
                    </div>
                    <div class="control-group1" style="width:50%">
                        <label class="control-label" style="width:70px;"><font color="red" size="+1">*</font>申请日期</label>
                        <div class="controls" style=" margin-left:80px;">
                            <input type="text" class="form-control js-date" name="refund_apply_time" style="max-width:200px; width:auto;" value="" autocomplete="off">
                        </div>
                    </div>
                    <div class="control-group1" style="width:50%">
                        <label class="control-label" style="width:70px;"><font color="red" size="+1">*</font>退款金额</label>
                        <div class="controls" style=" margin-left:80px;">
                            <input type="text" class="form-control" name="refund_amount" style="max-width:200px; width:auto;" value="{$dj_info.deposit_price}">
                        </div>
                    </div>
                    <div class="control-group1" style="width:50%">
                        <label class="control-label" style="width:70px;"><font color="red" size="+1">*</font>退款方式</label>
                        <div class="controls" style=" margin-left:80px;">
                            <select name="refund_pay" style="max-width:200px; width:auto;" class="form-control">
                                <option value="1">现金</option>
                                <option value="2">转账汇款</option>
                                <option value="4">微信</option>
                                <option value="5">支付宝</option>
                                <option value="6">其他</option>
                            </select>
                        </div>
                    </div>
                    <div class="control-group1" style="width:100%">
                        <label class="control-label" style="width:70px;"><font color="red" size="+1">*</font>退款账户</label>
                        <div class="controls" style=" margin-left:80px;">
                            <input type="text" class="form-control" name="refund_account" style="width:400px;" value="">
                        </div>
                    </div>
                    <div class="control-group1" style="width:50%">
                        <label class="control-label" style="width:70px;"><font color="red" size="+1">*</font>备注</label>
                        <div class="controls" style=" margin-left:80px;">
                           <textarea cols="13" class="form-control" name="refund_remark"></textarea>
                        </div>
                    </div>
                </div>
                <div class="form-actions" style="clear:both;">
                    <input type="hidden"  name="id"  value="{$dj_info.id}">
                    <input type="hidden" name="pay_id"   value="{$dj_info.pay_id}">
                    <input type="hidden" name="order_id"   value="{$dj_info.order_id}">
                    <input type="hidden" name="tomb_id"   value="{$dj_info.mw_id}">
                  <div class="btn btn-primary" id="check-btn">提交</div>
                  <div class="btn btn-primary"  onClick="javascript:parent.window.close()">关闭</div>
                </div>
            </div>
        </fieldset>
        </form>
        </div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>

    <script type="text/javascript" src="__STATIC__/js/layer/layer.js"></script>
	<script type="text/javascript">
	 // 提交订单
	$("#check-btn").click(function(){
		$.post($("form").attr('action'), $("form").serialize(), function(result){
			if(result.code == 1){
                layer.alert('提交成功。', {icon: 1, yes: function (index) {
                        parent.location.reload();
                        location.reload();
                    }})

			// 	$('#js-dialog-close').click();
			} else {
			}
		}, 'json');
	});
    </script>

</body>
</html>